|
|
|
|
|
|
|
Figure 2.20
The Loan Calculator program is now fully
functional and can calculate loan payments. |
|
|
|
|
|
|
|
|
Test the program with other combinations of numbers. When you're through, end the program by clicking the Exit button, or by clicking the End button on Visual Basic's toolbar. This will return you to the design environment. |
|
|
|
|
| |
|
|
|
|
The completed Loan Calculator program is contained in the file LOANCALC.ZIP, which can be downloaded from www.mcp.com/info. |
|
|
|
|
|
|
|
|
|
|
The loan calculator program has enabled us to dive right in to writing a Visual Basic program from scratch. In this chapter, you learned how to do the following: |
|
|
|
|
|
|
|
|
Set properties of your project's objects |
|
|
|
|
|
|
|
|
Write code to bring the program to life |
|
|
|
|
|
|
|
|
Believe it or not, these steps comprise the core of Visual Basic programming. You've seen simple examples of all these steps, but most Visual Basic programming involves repetition of these steps over and over until the desired results are obtained. |
|
|
|
|
|
|
|
|
As you start working with more complex applications, you'll see many ways to practice and enhance these fundamental Visual Basic programming skills. Refer to the following chapters for additional related information: |
|
|
|
|
|
|
|
|
To see how to use Visual Basic's fundamental components to create your own applications, see Chapter 3, ''Visual Basic Building Blocks." |
|
|
|
|
|
|
|
|
To learn about the various controls that you can use when building programs, see Chapter 4, "Using Visual Basic's Default Controls." |
|
|
|
|
|
|
|
|
To learn more about writing Visual Basic code to interact with your program's users, see Chapter 5, "Responding to the User with Event Procedures." |
|
|
|
|
|